<div class="search">
    <input type="text" class="input1" [(ngModel)]="keyword"><button (click)="doSearch()">搜索</button>
    <hr>
    <ul *ngFor="let item of historyList;let i=index">
        <li>{{item}} <button (click)="deleteHistory(i)">X</button></li>
    </ul>
</div>